<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditSubbaciaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditSubbaciaLabel_dnsCd}" for="dnsCd" />
                    <p:inputText id="dnsCd" value="#{subbaciaController.selected.dnsCd}" title="#{bundle.EditSubbaciaTitle_dnsCd}" required="true" requiredMessage="#{bundle.EditSubbaciaRequiredMessage_dnsCd}"/>
                    <h:outputLabel value="#{bundle.EditSubbaciaLabel_dnsNm}" for="dnsNm" />
                    <p:inputText id="dnsNm" value="#{subbaciaController.selected.dnsNm}" title="#{bundle.EditSubbaciaTitle_dnsNm}" />
                    <h:outputLabel value="#{bundle.EditSubbaciaLabel_dnsGmPoligono}" for="dnsGmPoligono" />
                    <p:inputText id="dnsGmPoligono" value="#{subbaciaController.selected.dnsGmPoligono}" title="#{bundle.EditSubbaciaTitle_dnsGmPoligono}" />
                    <h:outputLabel value="#{bundle.EditSubbaciaLabel_dnsNuSubbacia}" for="dnsNuSubbacia" />
                    <p:inputText id="dnsNuSubbacia" value="#{subbaciaController.selected.dnsNuSubbacia}" title="#{bundle.EditSubbaciaTitle_dnsNuSubbacia}" required="true" requiredMessage="#{bundle.EditSubbaciaRequiredMessage_dnsNuSubbacia}"/>
                    <h:outputLabel value="#{bundle.EditSubbaciaLabel_dnbCd}" for="dnbCd" />
                    <h:selectOneMenu id="dnbCd" value="#{subbaciaController.selected.dnbCd}" title="#{bundle.EditSubbaciaTitle_dnbCd}" >
                        <f:selectItems value="#{baciaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{subbaciaController.update}" value="#{bundle.EditSubbaciaSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditSubbaciaViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{subbaciaController.prepareList}" value="#{bundle.EditSubbaciaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditSubbaciaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
